\hypertarget{classduye_1_1_net_r_w}{\section{duye\-:\-:Net\-R\-W Class Reference}
\label{classduye_1_1_net_r_w}\index{duye\-::\-Net\-R\-W@{duye\-::\-Net\-R\-W}}
}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
enum {\bfseries Net\-R\-W\-Status} \{ \\*
{\bfseries R\-W\-\_\-\-I\-N\-I\-T}, 
{\bfseries R\-D\-\_\-\-F\-I\-N\-I\-S\-H\-E\-D}, 
{\bfseries R\-D\-\_\-\-O\-V\-E\-R\-F\-L\-O\-W}, 
{\bfseries W\-R\-\_\-\-F\-I\-N\-I\-S\-H\-E\-D}, 
\\*
{\bfseries F\-D\-\_\-\-C\-L\-O\-S\-E\-E\-D}
 \}
\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static int64 \hyperlink{classduye_1_1_net_r_w_ac8b15d5bf9cd8752e637dec32b191114}{read} (const int32 fd, \hyperlink{classduye_1_1_buffer}{Buffer} \&buffer, Net\-R\-W\-Status \&status, const bool block=false)
\begin{DoxyCompactList}\small\item\em read data from socket fd \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_net_r_w_a8faf3770bf2de06621b97fc84014c0b2}{static int64 {\bfseries read} (const int32 fd, int8 $\ast$buffer, const uint32 size, Net\-R\-W\-Status \&status, const bool block=false)}\label{classduye_1_1_net_r_w_a8faf3770bf2de06621b97fc84014c0b2}

\item 
static int64 \hyperlink{classduye_1_1_net_r_w_a7bbdba893de9ebc289d001aa5ba5fcb0}{write} (const int32 fd, const \hyperlink{classduye_1_1_buffer}{Buffer} \&data, Net\-R\-W\-Status \&status)
\begin{DoxyCompactList}\small\item\em write data to socket fd \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_net_r_w_a0b8b8f9411f23861d90e7fc955b0ce85}{static int64 {\bfseries write} (const int32 fd, const int8 $\ast$data, const uint32 len, Net\-R\-W\-Status \&status)}\label{classduye_1_1_net_r_w_a0b8b8f9411f23861d90e7fc955b0ce85}

\item 
static bool \hyperlink{classduye_1_1_net_r_w_ae07953b1b9cd0f8cfd7cb25ecd26659f}{close} (const int32 fd)
\begin{DoxyCompactList}\small\item\em close socket fd \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Member Function Documentation}
\hypertarget{classduye_1_1_net_r_w_ae07953b1b9cd0f8cfd7cb25ecd26659f}{\index{duye\-::\-Net\-R\-W@{duye\-::\-Net\-R\-W}!close@{close}}
\index{close@{close}!duye::NetRW@{duye\-::\-Net\-R\-W}}
\subsubsection[{close}]{\setlength{\rightskip}{0pt plus 5cm}static bool duye\-::\-Net\-R\-W\-::close (
\begin{DoxyParamCaption}
\item[{const int32}]{fd}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classduye_1_1_net_r_w_ae07953b1b9cd0f8cfd7cb25ecd26659f}


close socket fd 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em fd} & \-: socket fd \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true/false 
\end{DoxyReturn}
\begin{DoxyNote}{Note}

\end{DoxyNote}
\hypertarget{classduye_1_1_net_r_w_ac8b15d5bf9cd8752e637dec32b191114}{\index{duye\-::\-Net\-R\-W@{duye\-::\-Net\-R\-W}!read@{read}}
\index{read@{read}!duye::NetRW@{duye\-::\-Net\-R\-W}}
\subsubsection[{read}]{\setlength{\rightskip}{0pt plus 5cm}static int64 duye\-::\-Net\-R\-W\-::read (
\begin{DoxyParamCaption}
\item[{const int32}]{fd, }
\item[{{\bf Buffer} \&}]{buffer, }
\item[{Net\-R\-W\-Status \&}]{status, }
\item[{const bool}]{block = {\ttfamily false}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classduye_1_1_net_r_w_ac8b15d5bf9cd8752e637dec32b191114}


read data from socket fd 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em fd} & \-: socket fd \\
\hline
\mbox{\tt out}  & {\em buffer} & \-: save read data \\
\hline
\mbox{\tt in}  & {\em size} & \-: buffer size  \mbox{[}out\mbox{]} status \-: socket fd status \\
\hline
\mbox{\tt in}  & {\em block} & \-: default nonblock \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
read size / -\/1 
\end{DoxyReturn}
\begin{DoxyNote}{Note}

\end{DoxyNote}
\hypertarget{classduye_1_1_net_r_w_a7bbdba893de9ebc289d001aa5ba5fcb0}{\index{duye\-::\-Net\-R\-W@{duye\-::\-Net\-R\-W}!write@{write}}
\index{write@{write}!duye::NetRW@{duye\-::\-Net\-R\-W}}
\subsubsection[{write}]{\setlength{\rightskip}{0pt plus 5cm}static int64 duye\-::\-Net\-R\-W\-::write (
\begin{DoxyParamCaption}
\item[{const int32}]{fd, }
\item[{const {\bf Buffer} \&}]{data, }
\item[{Net\-R\-W\-Status \&}]{status}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classduye_1_1_net_r_w_a7bbdba893de9ebc289d001aa5ba5fcb0}


write data to socket fd 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em fd} & \-: socket fd \\
\hline
\mbox{\tt in}  & {\em data} & \-: send data \\
\hline
\mbox{\tt in}  & {\em len} & \-: data len  \mbox{[}out\mbox{]} status \-: socket fd status \\
\hline
\mbox{\tt in}  & {\em block} & \-: default nonblock \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
read size / -\/1 
\end{DoxyReturn}
\begin{DoxyNote}{Note}

\end{DoxyNote}


The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
Z\-:/duye/src/duyebase/net/\hyperlink{duye__net__rw_8h}{duye\-\_\-net\-\_\-rw.\-h}\end{DoxyCompactItemize}
